import _fetch from "./request";
function getUserData(params) {
  return _fetch({
    url: "/user/list",
    method: "get",
    params,
  });
}
function addUser(data) {
  return _fetch({
    url: "/user/add",
    method: "post",
    data,
  });
}
function userEdit(data) {
  return _fetch({
    url: "/user/edit",
    method: "post",
    data,
  });
}
function usertStatus(data) {
  return _fetch({
    url: "/user/status",
    method: "post",
    data,
  });
}
function userRemove(data) {
  return _fetch({
    url: "/user/remove",
    method: "post",
    data,
  });
}
export { getUserData, addUser, userEdit, usertStatus, userRemove };
